package com.ncs.nc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ncs.nc.mapper.UserRoleAuthMapper;
import com.ncs.nc.entity.UserRoleAuth;
import com.ncs.nc.service.UserRoleAuthService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("ura")
public class UserRoleAuthServiceImpl extends ServiceImpl<UserRoleAuthMapper, UserRoleAuth>
implements UserRoleAuthService {

    @Resource
    private UserRoleAuthMapper uraMapper;

    @Override
    public List<UserRoleAuth> getAuths(int uId) {
        return uraMapper.findAuthsByUserId(uId);
    }
}
